#!/bin/bash
p=correctness_tests/
d=10
n=100
m=50
for i in `seq 1 9`
do
	echo "$d" >$p$i.in
	echo "$n" >>$p$i.in
	echo $m >>$p$i.in
	for k in `seq 1 $n`
	do
		for j in `seq 1 $d`
		do
			x[$j]=$RANDOM
			let "x[$j] %= 10"
		done
		echo "${x[@]}" >>$p$i.in
	done
	echo >>$p$i.in
	for k in `seq 1 $m`
	do
		for j in `seq 1 $d`
		do
			x1[$j]=$RANDOM
			let "x1[$j] %= 7"
		done
		echo "${x1[@]}" >>$p$i.in
		for j in `seq 1 $d`
		do
			x2[$j]=$RANDOM
			let "x2[$j] %= 5"
			let "x2[$j] += x1[$j]"
		done
		echo ${x2[@]} >>$p$i.in
		echo >>$p$i.in
	done
done
